# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1046.69.10 -> 1.1046.69.11 # include/linux/mm.h 1.117 -> 1.117.1.1 # mm/mmap.c 1.79 -> 1.79.1.1 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/05/14 davidm@tiger.hpl.hp.com 1.1046.69.11 # Add MM_VM_SIZE() support. # -------------------------------------------- # diff -Nru a/include/linux/mm.h b/include/linux/mm.h --- a/include/linux/mm.h Mon Sep 22 12:59:18 2003 +++ b/include/linux/mm.h Mon Sep 22 12:59:18 2003 @@ -23,7 +23,12 @@ #include #include +#include #include + +#ifndef MM_VM_SIZE +#define MM_VM_SIZE(mm) TASK_SIZE +#endif /* * Linux kernel virtual memory manager primitives. diff -Nru a/mm/mmap.c b/mm/mmap.c --- a/mm/mmap.c Mon Sep 22 12:59:18 2003 +++ b/mm/mmap.c Mon Sep 22 12:59:18 2003 @@ -1440,7 +1440,7 @@ vm_unacct_memory(nr_accounted); BUG_ON(mm->map_count); /* This is just debugging */ clear_page_tables(tlb, FIRST_USER_PGD_NR, USER_PTRS_PER_PGD); - tlb_finish_mmu(tlb, 0, TASK_SIZE); + tlb_finish_mmu(tlb, 0, MM_VM_SIZE(mm)); vma = mm->mmap; mm->mmap = mm->mmap_cache = NULL;